﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace W6
{
    class Person
    {
        public string HeroName;
        public string HeroInfo;
        public int attack;
        public int defense;
        public int speed;
        public Person() { }
        public Person(string HeroName, string Heroinfo, int attack, int defense, int speed)
        {
            this.HeroName = HeroName;
            this.HeroInfo = Heroinfo;
            this.attack = attack;
            this.speed = speed;
            this.defense = defense;
        }
        public void Print()
        {
            Console.WriteLine("名字：{0}；简介：{1};攻击：{2}；防御：{3}；速度：{4}；", this.HeroName, this.HeroInfo, this.attack, this.defense, this.speed);
        }

    }
    class Ailuoke : Person
    {   //有参构造跟无参与父参差不多就可以不用写了
        //public Ailuoke (){}
        //public Ailuoke(string HeroName, string Heroinfo, int attack, int defense, int speed) 
        //{

        //}
        public void Suishidaji()
        {
            Console.WriteLine("碎石打击");
        }
        public void Lieyanmaogou()
        {
            Console.WriteLine("烈焰锚钩");
        }
        public void Zhandoupaoxiao()
        {
            Console.WriteLine("战斗咆哮");
        }
        //显示的内容跟父的差不多也可以不用写
        //public void Print()
        //{
        //    Console.WriteLine("名字：{0}；简介：{1};攻击：{2}；防御：{3}；速度：{4}；", this.HeroName, this.HeroInfo, this.attack, this.defense, this.speed);
        //}

    }
    class Taila : Person { 
        public void Julangchongji()
        {
            Console.WriteLine("巨浪冲击");
        }
        public void Yuanshutuji()
        {
            Console.WriteLine("元素突击");
        }
        public void Fuchoushalu()
        {
            Console.WriteLine("复仇杀戮");
        }
    }
    class Lukasi : Person
    {
        public void Jiansuxianjing()
        {
            Console.WriteLine("减速陷阱");
        }
        public void Nenglianglangchao()
        {
            Console.WriteLine("能量浪潮");
        }
        public void Xuanfengjianwu()
        {
            Console.WriteLine("旋风剑舞");
        }
    }
    class Luofei : Person
    {
        public void nengliangjinglng()
        {
            Console.WriteLine("能量精灵");
        }
        public void Anyingchuansong()
        {
            Console.WriteLine("暗影传送");
        }
        public void Shikongbenglie()
        {
            Console.WriteLine("时空迸裂");
        }
    }

    class Class1
    {
        static void Main(string[] args)
        {

            Ailuoke ailuoke = new Ailuoke();
            ailuoke.HeroName = "艾洛克";
            ailuoke.HeroInfo = "末日边界的勇士";
            ailuoke.attack = 88;
            ailuoke.defense = 65;
            ailuoke.speed = 40;
            ailuoke.Print();
            Console.WriteLine("技能：");
            ailuoke.Lieyanmaogou();
            ailuoke.Suishidaji();
            ailuoke.Zhandoupaoxiao();

            Taila taila = new Taila();
            taila.HeroName = "泰拉";
            taila.HeroInfo = "为复仇而来的勇者";
            taila.attack = 80;
            taila.defense = 70;
            taila.speed = 55;
            taila.Print();
            Console.WriteLine("技能");
            taila.Julangchongji();
            taila.Yuanshutuji();
            taila.Fuchoushalu();

            Lukasi lukasi = new Lukasi();
            lukasi.HeroName = "卢卡斯";
            lukasi.HeroInfo = "彬彬有礼的剑客";
            lukasi.attack = 90;
            lukasi.defense = 50;
            lukasi.speed = 60;
            lukasi.Print();
            Console.WriteLine("技能：");
            lukasi.Jiansuxianjing();
            lukasi.Nenglianglangchao();
            lukasi.Xuanfengjianwu();

            Luofei luofei = new Luofei();
            luofei.HeroName = "洛菲";
            luofei.HeroInfo = "攻击迅猛，擅长魔法的时空旅行者";
            luofei.attack = 85;
            luofei.defense = 30;
            luofei.speed = 70;
            luofei.Print();
            Console.WriteLine("技能");
            luofei.nengliangjinglng();
            luofei.Shikongbenglie();
            luofei.Anyingchuansong();


        }
    }

}
